import { createApi } from "./Component/Api";

export default createApi({
    refreshMenu: function() {
        return arguments[0];
    },
    refreshI18n: function() {
        return arguments[0];
    },
    refreshTheme: function() {
        return arguments[0];
    },
    getWebsiteConfig: () => {
        const data = sessionStorage.getItem("websiteConfig");
        if(data) {
            return JSON.parse(data);
        } else {
            return {};
        }
    }
});